using System.Collections.Generic;

namespace Engine.OldSerialization {
    public class DictionarySerializer<K, V> : ISerializer<Dictionary<K, V>> {
        public void Serialize(InputArchive archive, ref Dictionary<K, V> value) {
            value = new Dictionary<K, V>();
            archive.SerializeDictionary(null, value);
        }

        public void Serialize(OutputArchive archive, Dictionary<K, V> value) {
            archive.SerializeDictionary(null, value);
        }
    }
}